/**
 * 
 */
package com.owen.he.jee.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
public class PagingResult<T> extends LoadmoreResult<T> {
	private int totalPage;
	/** 总行数 */
	private int total;
	
	public PagingResult() {
	}
	
	public  PagingResult(PagingResult<?> otherPagingResult) {
		setCurrentPage(otherPagingResult.getCurrentPage());
		setPageSize(otherPagingResult.getPageSize());
		setTotalPage(otherPagingResult.getTotalPage());
		this.total = otherPagingResult.getTotal();
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}
	
	
}